import torch

def test():
    data = torch.full([2, 3], 10)
    print(data.dtype)

    data = data.type(torch.DoubleTensor)
    print(data.dtype)

    data = data.double()
    print(data.dtype)

if __name__ == '__main__':
    test()